<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>v-show</title>
</head>
<body>
    <!-- v-show -->
    <div id="app"> 
       {{msg}}<br/>
       <span v-show="true">aaa</span><br/>
       <span v-show="isShow">bbbb</span><br>
       <input type="button" value="切换状态" @click="changeShow"/>
       <span v-show="age>13">{{age}}</span>
    </div>

    <script>
        var vue= new  Vue({
            
            el:"#app",
            data:{
                msg:"大叔",
                isShow:true,
                age:12
            },
            methods:{
                changeShow(){
                    this.isShow=!this.isShow;
                    this.age++;
                }
            }
        })
    </script>
</body>
</html>